package com.zhfi.dataapply.schedule.reader.management;

import com.zhfi.dataapply.entity.data.po.management.TaxCreditPO;
import com.zhfi.dataapply.schedule.companylist.CompanyListService;
import com.zhfi.dataapply.schedule.reader.AbstractPageReader;
import com.zhfi.dataapply.service.CVSourceUrlService;
import com.zhfi.dataapply.service.ForwardService;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class TaxCreditReader extends AbstractPageReader<TaxCreditPO> {

    private static String URL_ID = "9.4";

    @Getter
    private String url;

    @Autowired
    private CVSourceUrlService cvSourceUrlService;


    @Autowired
    public TaxCreditReader(ForwardService forwardService,
                              CompanyListService companyListService) {
        super(TaxCreditPO.class, forwardService, companyListService);
    }

    protected void resetUrl() {
        this.url = cvSourceUrlService.getUrlById(URL_ID);
    }

}
